import { ProductionType } from '@/config';
const productionType = Object.values(ProductionType).map(item => ({ value: item, label: item })); // 生产类型下拉列表选项

export const searchConfig: PageConfig = {
    items: [
        {
            itemType: 'text',
            modelKey: 'materialCode',
            elInputProps: {
                placeholder: '请输入物料编码'
            },
            columnProps: {
                label: '物料编码',
                width: '60'
            }
        },
        {
            itemType: 'text',
            modelKey: 'materialName',
            elInputProps: {
                placeholder: '请输入物料名称'
            },
            columnProps: {
                label: '物料名称'
            }
        },
        {
            itemType: 'select',
            modelKey: 'productionType',
            default: ProductionType.HANDMADE,
            elSelectProps: {
                placeholder: '请选择',
                options: productionType
            },
            columnProps: {
                label: '生产类型'
            }
        }
    ]
};
